home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / doc / unix / usersetup.doc < prev   
Encoding:
Text File  |  1992-11-19  |  3.6 KB  |  75 lines

  1.  
  2.  
  3.  
  4.  
  5.      USERSETUP(UNIX)              3/14/79              USERSETUP(UNIX)
  6.  
  7.  
  8.  
  9.      NAME
  10.           usersetup - setup users file
  11.  
  12.      SYNOPSIS
  13.           .../_b_i_n/_u_s_e_r_s_e_t_u_p [ flags [ pathname ] ]
  14.  
  15.      DESCRIPTION
  16.           The /_e_t_c/_p_a_s_s_w_d file is read and reformatted to  become  the
  17.           INGRES users file, stored into .../_f_i_l_e_s/_u_s_e_r_s.  If _p_a_t_h_n_a_m_e
  18.           is specified, it replaces ``...''.  If  pathname  is  ``-'',
  19.           the result is written to the standard output.
  20.  
  21.           The user name, user, and group id's are  initialized  to  be
  22.           identical  to  the  corresponding  entry  in the /_e_t_c/_p_a_s_s_w_d
  23.           file.  The status field is initialized to be 000001,  except
  24.           for user _i_n_g_r_e_s, which is initialized to all permission bits
  25.           set.  If the _s_t_a_t_u_s parameter is provided, the field is  set
  26.           to  this  instead.  The ``initialization file'' parameter is
  27.           set to the file ._i_n_g_r_e_s in the user's login directory.   The
  28.           user code field is initialized with sequential two-character
  29.           codes.  All other fields are initialized to be null.
  30.  
  31.           After running _u_s_e_r_s_e_t_u_p, the _u_s_e_r_s file must be edited.  Any
  32.           users who are to have any special authorizations should have
  33.           the status field changed, according to the specifications in
  34.           users(files).   To  disable a user from executing INGRES en-
  35.           tirely, completely remove her line from the users file.
  36.  
  37.           As UNIX users are added  or  deleted  from  the  /_e_t_c/_p_a_s_s_w_d
  38.           file,  the _u_s_e_r_s file will need to be editted to reflect the
  39.           changes.  For deleted users, it is only necessary to  delete
  40.           the  line for that user from the _u_s_e_r_s file.  To add a user,
  41.           you must assign that user a code in the form "aa" and  enter
  42.           a line in the users file in the form:
  43.                   name:cc:uid:gid:status:flags:proctab:initfile::databases
  44.           where  _n_a_m_e  is the user name (taken from the first field of
  45.           the /_e_t_c/_p_a_s_s_w_d file entry for this user), _c_c  is  the  user
  46.           code assigned, which must be exactly two characters long and
  47.           must not be the same as any other existing user  codes,  _u_i_d
  48.           and _g_i_d are the user and group ids (taken from the third and
  49.           fourth fields in  the  /_e_t_c/_p_a_s_s_w_d  entry),  _s_t_a_t_u_s  is  the
  50.           status  bits  for  this user, normally 000000, _f_l_a_g_s are the
  51.           default flags for INGRES (on a per-user basis),  _p_r_o_c_t_a_b  is
  52.           the  default  process table for this user (which defaults to
  53.           =_p_r_o_c_t_a_b_8), and _d_a_t_a_b_a_s_e_s is a list of  the  databases  this
  54.           user may enter.  If null, she may use all databases.  If the
  55.           first character is a dash (``-''),  the  field  is  a  comma
  56.           separated list of databases which she may not enter.  Other-
  57.           wise, it is a list of databases which she may enter.
  58.  
  59.           The _d_a_t_a_b_a_s_e_s field includes the names  of  databases  which
  60.           may be created.
  61.  
  62.           _U_s_e_r_s_e_t_u_p may be executed only once, to initially create the
  63.           _u_s_e_r_s file.
  64.  
  65.      FILES
  66.           .../files/users
  67.           /etc/passwd
  68.  
  69.      SEE ALSO
  70.           ingres(unix), passwd(5), users(files)
  71.  
  72.      BUGS
  73.           It should be able to bring the _u_s_e_r_s file up to date.
  74.  
  75.